#define _CRT_SECURE_NO_WARNINGS 1
int get_bin_count(int num) {
    int count = 0;
    for (int i = 0; i < 32; i++)
    {
        if ((num >> i) & 1)
            count++;
    }
    return count;
}
int convertInteger(int A, int B) {
    return get_bin_count(A ^ B);
}
